package com.easyUploader.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.easyUploader.entity.dao.User;
import com.easyUploader.entity.dto.UserDto;
import com.easyUploader.entity.vo.UserUpdateVo;
import com.easyUploader.entity.vo.UserVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年11月15日
 */
public interface IUserService extends IService<User> {

    String register(UserVo userVo) throws IOException;

    void sendCode(String eamil);

    String login(String username, String password);

    UserDto userInfo();

    void getHeadImgData(HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest) throws UnsupportedEncodingException;

    void updateUser(UserUpdateVo userUpdateVo) throws IOException;

    void userCancel();
}
